package per.kongtouxu.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import per.kongtouxu.domain.pojo.User;

import java.util.List;

public interface UserDao {
    //根据条件分页查询
    public List<User> findUserByPage(@Param("account") String account,@Param("Tel") String Tel,@Param("email") String email,@Param("startTime") String startTime,@Param("endTime") String endTime,@Param("rb") RowBounds rb);
    //分页查询总数
    public Integer findCountUserByPage(@Param("account") String account,@Param("Tel") String Tel,@Param("email") String email,@Param("startTime") String startTime,@Param("endTime") String endTime);
    //根据账户修改状态
    public Integer updateUserStateByAccount(@Param("userName") String userName,@Param("stateId") Integer stateId);
    //根据账号密码查询User
    public User findUserByUP(@Param("account") String account,@Param("password") String password);
    //根据账号修改密码
    public Integer updateUserPwdByAccount(@Param("userName") String userName,@Param("password")String password);
}
